<div class="profileShortView">
			<div class="panelUserAvatar">
				<img src="{$urlStatic}/{image src=$user->getAvatar() w=90}" title="{$user->getFirstName()} {$user->getLastName()}" alt="{$user->getFirstName()} {$user->getLastName()}"/>
				<h1>{$user->getFirstName()}<br/>{$user->getLastName()}</h1>
			</div>
			<div class="panelUserInfo">
				<table cellpadding="0" cellspacing="0" align="center" class="panelProfle">
					<tr><td class="label">Age:</td><td>{$user->getAge()}</td></tr>
					<tr><td class="label">NTPR:</td><td>{$user->userExtendedProfile->getNtrp()}</td></tr>
					<tr><td class="label">Location:</td><td>{$user->getLocation()}</td></tr>
				</table>
			</div>
			<div class="panelUserInfo">
				<table cellpadding="0" cellspacing="0" align="center" class="panelProfle">
					<tr><td class="label">Comments:</td><td>{$user->getCommentsCount()}</td></tr>
					<tr><td class="label">Product opinions:</td><td>{$user->getProductCommentsCount()}</td></tr>
					<tr><td class="label">Connnections:</td><td>{$user->getCOnnectionsCount()} {'friends'|t}</td></tr>
				</table>
			</div>
			
			<div class="profileLinks">
				{if $_userLoggedIn}
				{if $user->getId()!=$_user->getId() && !$isFriend}<a href="{url label=newConnect idUser=$user->getId()}" title="" class="connectFriend">connect to frined</a>{/if}
			{if $user->getId()!=$_user->getId()}<a href="{url label=newMessage idUser=$user->getId()}" title="" class="sendMessage">send message</a>{/if}
			{if $user->getId()==$_user->getId()}<a href="profile_edit.html" title="" class="edit">edit my profile</a>{/if}
			{if $user->getId()!=$_user->getId() && $isFriend}<a href="#" title="" class="disconnectFriend">remove from my friends</a>{/if}
			{else}
			<a href="{url label=login}" title="" class="connectFriend">connect to frined</a>
			<a href="{url label=login}" title="" class="sendMessage">send message</a>
			{/if}
			</div>
		</div>
		
		
		<div class="panel310">
			<div class="backgroundFrame310Top"></div>
			<div class="backgroundFrame310">
				{foreach from=$userGalleries item=gallery}
				<div class="galleryItemV{if $gallery->getId()==$obj->getId()} galleryItemVSelected{/if}">
					<a href="{url label=userGallery idGallery=$gallery->getId()}" title="{$gallery->getTitle()}"><img src="{$urlStatic}/{image src=$gallery->getThumbnail() w=90}" alt="{$gallery->getTitle()}" class="thumb"/></a>
					<h2><a href="{url label=userGallery idGallery=$gallery->getId()}" title="{$gallery->getTitle()}">{$gallery->getTitle()}</a></h2>
					<p class="date">{'added'|t}: {$gallery->getDate()}</p>
					<p class="desc">{$gallery->getDescription()|truncate:120}</p>
					<p class="links">
						<a href="{url label=userGallery idGallery=$gallery->getId()}" title="{'See gallery'|t}" class="photos">{$gallery->getNumPhotos()} {'photos'|t}</a>
						<a href="{url label=userGallery idGallery=$gallery->getId()}" title="{'See gallery'|t}" class="view">{'view'|t}</a>
						<a class="handUp rateComment" title="{'Up'|t}" href="{url label=ajaxRateGallery idGallery=$gallery->getId() like=1}">{$gallery->getLikes()}</a>
						<a class="handDown rateComment" title="{'Down'|t}" href="{url label=ajaxRateGallery idGallery=$gallery->getId() like=0}">{$gallery->getDislikes()}</a>
					</p>
					<div class="spacer"></div>
				</div>
			{/foreach}
				
				
				
				
				
				
				
			</div>
			<div class="backgroundFrame310Bottom"></div>
		</div>
		
		<div class="panel640">
			<div class="backgroundFrame640Top"></div>
			<div class="backgroundFrame640">
				<div class="galleryView">
					<h1>{$obj->getTitle()}</h1>
					<p class="date">added: {$obj->getDate()}</p>
					<div class="mainPhoto">
						<img src="{$urlStatic}/{image src=$image w=600}" alt="gallery name"/>
					</div>
					
					<div class="thumbs">
						{foreach from=$files item=file key=item}
						<a href="{url label=userGalleryPage idGallery=$obj->getId() page=$item}" title="view" {if $selected==$item}class="selected"{/if}><img src="{$urlStatic}/{image src=$file h=90}" alt="gallery name"/></a>
						{/foreach}
						<div class="clearBoth"></div>
					</div>
					
					
					
					<p class="desc">{$obj->getDescription()}</p>
					
					
					<div class="commentBar">
						<a class="aComments aComments_" title="comments">{$comments|@count} {'comments'|t}</a>
						{if $_userLoggedIn}<a class="addComment" title="comments">{'write your comment'|t}</a>{/if}
					</div>
						
						{foreach from=$comments item=comment}
								<div class="comments">
									<div class="userAvatar"><a href="{url label=userProfile idUser=$comment->user->getId()}" title="{$comment->user->getFirstName()} {$comment->user->getLastName()}"><img src="{$urlStatic}/{image src=$comment->user->getAvatar() w=90}"  alt="{$comment->user->getFirstName()} {$comment->user->getLastName()}" title="{$comment->user->getFirstName()} {$comment->user->getLastName()}" class="avatar"/></a></div>
									<div class="message">
										<p class="date">{$comment->getDate()}</p>
										<p class="username"><a href="{url label=userProfile idUser=$comment->user->getId()}" title="{$comment->user->getFirstName()} {$comment->user->getLastName()}">{$comment->user->getFirstName()} {$comment->user->getLastName()}</a></p>
										<p>{$comment->getContent()}</p>
									</div>
									<div class="clearBoth"></div>
								</div>
						{foreachelse}
						<div class="comments">
									{'there is no comments yet'|t}
									<div class="clearBoth"></div>
								</div>
						{/foreach}		
								
								
								
							{if $_userLoggedIn}	
								<div class="comments commentsNewMessage">
									<div class="userAvatar"><a href="{url label=userProfile idUser=$_user->getId()}" title="{$_user->getFirstName()}"><img src="{$urlStatic}/{image src=$_user->getAvatar() w=90}"  alt="{$_user->getFirstName()}" title="{$_user->getFirstName()}" class="avatar"/></a></div>
									<div class="message">
										<form action="{url label=current}" method="post">
										<textarea name="comment" rows="5" cols="20"></textarea>
										<input type="submit" value="{'Send'|t}" />
										</form>
									</div>
									<div class="clearBoth"></div>
								</div>
								{/if}
								
				</div>
			</div>
			<div class="backgroundFrame640Bottom"></div>
		</div>

		
		<div class="clearBoth"></div>
